import React, { Component } from 'react'
import { View, Text } from '@tarojs/components'
import { AtButton } from 'taro-ui'
import './index.css'

export default class Index extends Component {

  componentWillMount() { }

  componentDidMount() { }

  componentWillUnmount() { }

  componentDidShow() { }

  componentDidHide() { }

  test = () => {
    console.info("test")
  }

  render() {
    return (
      <View className='index'>
        <Text>Hello world!</Text>
        <AtButton onClick={this.test} type='primary'>按钮文案</AtButton>
      </View>
    )
  }
}
